using System;
using JoyfulHomeJourney.BackEnd.Infrastructure.EFCore;
using JoyfulHomeJourney.BackEnd.Infrastructure.Dtos.Requests.Objects;
namespace JoyfulHomeJourney.BackEnd.Server.Instances.Extends.Requests
{
	public static class EntityTaskCategorieRelationshipsCreateExtend
{
		public static TaskCategorieRelationships ToCreateEntity(this RequestTaskCategorieRelationshipsDto dto)
		{
			return new TaskCategorieRelationships
			{
				TcrCategoryId = dto.categoryId,
				TcrTaskId = dto.taskId,
			};
		}
	}
}
